import request from '@/utils/request'

export default {
  //1 分页查询所有借贷信息
  getAllLoanList(page,limit){
    return request({
      url:`/jdservice/loan/getLoan/${page}/${limit}`,
      method:'get',
    })
  },
  //2 分页待条件查询所有借贷信息
  getLoanList(page,limit,loanQuery){
    return request({
      url:`/jdservice/loan/getLoanList/${page}/${limit}`,
      method:'post',
      data:loanQuery
    })
  },
  //3 删除借贷信息
  delete(id){
    return request({
      url:`/jdservice/loan/${id}`,
      method:'delete'
    })
  },
  //4 根据id获取备注
  getDescription(id){
    return request({
      url:`/jdservice/loandescription/getDescription/${id}`,
      method:'get'
    })
  },
 
}
